<template>
  <div>
    <div class="bnner-box">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item v-for="(item ,index) in bnnerList" :key="index"><img :alt="item.typeTitle" :src="item.imageUrl+'?param=750y292'" cover></van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>
<script  type='module'>

export default {
  name: 'DiscoverBnner',
  props: {
    bnnerList: Array
  },
  created () {
  }
}
</script>

<style lang="less" scope>
.bnner-box {
  overflow: hidden;
  width: 100%;
  height: 0;
  // border-radius: 8px;
  // padding-bottom: 41.6%;
  padding-bottom: 38.93%;
  margin-bottom: 15px;
  .my-swipe {
    .van-swipe-item {
      img {
        width: 100%;
      }
    }
  }
}
</style>
